[CRT]
[reactos.git] / lib / sdk / crt / math / i386 / floor_asm.s
index f03c85c..87ebaf2 100644 (file)
  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 
  * SUCH DAMAGE.
  */
-.globl _floor
-.intel_syntax noprefix
 
+#include <reactos/asm.h>
+
+PUBLIC _floor
 /* FUNCTIONS ***************************************************************/
+.code
 
 _floor:
         push    ebp
@@ -47,7 +48,7 @@ _floor:
         fld     qword ptr [ebp+8]       // Load real from stack
         fstcw   [ebp-2]                 // Save control word
         fclex                           // Clear exceptions
-        mov     word ptr [ebp-4],0x763  // Rounding control word
+        mov     word ptr [ebp-4], HEX(0763)  // Rounding control word
         fldcw   [ebp-4]                 // Set new rounding control
         frndint                         // Round to integer
         fclex                           // Clear exceptions
@@ -55,3 +56,5 @@ _floor:
         mov     esp,ebp
         pop     ebp
         ret
+
+END