]> git.proxmox.com Git - mirror_edk2.git/blobdiff - EdkCompatibilityPkg/Foundation/Library/EfiCommonLib/Ia32/GetPowerOfTwo.S
Update the copyright notice format
[mirror_edk2.git] / EdkCompatibilityPkg / Foundation / Library / EfiCommonLib / Ia32 / GetPowerOfTwo.S
index b3ee8ee126a30021b5e9a10d09695de72924574a..485fb8bc485071ccda58e55d0d30adb68371d422 100644 (file)
@@ -1,68 +1,68 @@
-#/*++
-#
-#Copyright (c) 2006, Intel Corporation                                                         
-#All rights reserved. This program and the accompanying materials                          
-#are licensed and made available under the terms and conditions of the BSD License         
-#which accompanies this distribution.  The full text of the license may be found at        
-#http://opensource.org/licenses/bsd-license.php                                            
-#                                                                                          
-#THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,                     
-#WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.             
-#
-#Module Name:
-#
-#  GetPowerOfTwo.c
-#
-#Abstract:
-#
-#  Calculates the largest integer that is both 
-#  a power of two and less than Input
-#
-#--*/
-#include "EfiBind.h"
-#---------------------------------------------------------------------------
-    .686: 
-    #.MODEL flat,C
-    .code: 
-
-#---------------------------------------------------------------------------
-.globl ASM_PFX(GetPowerOfTwo)
-#UINT64
-#GetPowerOfTwo (
-#  IN UINT64   Input
-#  )
-#/*++
-#
-#Routine Description:
-#
-#  Calculates the largest integer that is both 
-#  a power of two and less than Input
-#
-#Arguments:
-#
-#  Input  - value to calculate power of two
-#
-#Returns:
-#
-#  the largest integer that is both  a power of 
-#  two and less than Input
-#
-#--*/
-ASM_PFX(GetPowerOfTwo):
-    xorl    %eax, %eax
-    movl    %eax, %edx
-    movl    8(%esp), %ecx  # dword ptr Input[4]
-    jecxz   _F
-    bsrl    %ecx, %ecx
-    btsl    %ecx, %edx
-    jmp     _Exit
-_F: 
-    movl    4(%esp), %ecx  # dword ptr Input[0]
-    jecxz   _Exit
-    bsrl    %ecx, %ecx
-    btsl    %ecx, %eax
-_Exit: 
-
-    ret
-#GetPowerOfTwo ENDP
-
+#/*++\r
+#\r
+#Copyright (c) 2006, Intel Corporation. All rights reserved.<BR>\r
+#This program and the accompanying materials                          \r
+#are licensed and made available under the terms and conditions of the BSD License         \r
+#which accompanies this distribution.  The full text of the license may be found at        \r
+#http://opensource.org/licenses/bsd-license.php                                            \r
+#                                                                                          \r
+#THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,                     \r
+#WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.             \r
+#\r
+#Module Name:\r
+#\r
+#  GetPowerOfTwo.c\r
+#\r
+#Abstract:\r
+#\r
+#  Calculates the largest integer that is both \r
+#  a power of two and less than Input\r
+#\r
+#--*/\r
+#include "EfiBind.h"\r
+#---------------------------------------------------------------------------\r
+    .686: \r
+    #.MODEL flat,C\r
+    .code: \r
+\r
+#---------------------------------------------------------------------------\r
+.globl ASM_PFX(GetPowerOfTwo)\r
+#UINT64\r
+#GetPowerOfTwo (\r
+#  IN UINT64   Input\r
+#  )\r
+#/*++\r
+#\r
+#Routine Description:\r
+#\r
+#  Calculates the largest integer that is both \r
+#  a power of two and less than Input\r
+#\r
+#Arguments:\r
+#\r
+#  Input  - value to calculate power of two\r
+#\r
+#Returns:\r
+#\r
+#  the largest integer that is both  a power of \r
+#  two and less than Input\r
+#\r
+#--*/\r
+ASM_PFX(GetPowerOfTwo):\r
+    xorl    %eax, %eax\r
+    movl    %eax, %edx\r
+    movl    8(%esp), %ecx  # dword ptr Input[4]\r
+    jecxz   _F\r
+    bsrl    %ecx, %ecx\r
+    btsl    %ecx, %edx\r
+    jmp     _Exit\r
+_F: \r
+    movl    4(%esp), %ecx  # dword ptr Input[0]\r
+    jecxz   _Exit\r
+    bsrl    %ecx, %ecx\r
+    btsl    %ecx, %eax\r
+_Exit: \r
+\r
+    ret\r
+#GetPowerOfTwo ENDP\r
+\r