File: fp_zero.S

package info (click to toggle)
avr-libc 20020203-2
  • links: PTS
  • area: main
  • in suites: woody
  • size: 1,448 kB
  • ctags: 6,562
  • sloc: ansic: 7,631; asm: 4,424; sh: 2,703; makefile: 338; pascal: 289
file content (24 lines) | stat: -rw-r--r-- 550 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/*  -*- Mode: Asm -*-  */
/*
    fp_zero.S is part of     FPlib V 0.3.0       ported to avr-as
    for copyright and details see readme.fplib

 *----------------------------------------------------------------------------------------*/

#include "gasava.inc"
#include "fplib.inc"

          TEXT_SEG(fplib, __fp_zero)
          FUNCTION(__fp_zero)

GLOBAL(__fp_zero)
    CLR     rA0     ; 0.0 = 0x00 00 00 00
    CLR     rA1
    CLR     rA2
GLOBAL(__fp_zerox)
    CLR     rA3     ; rA3 == 0 -> merge sets everything to 0
    RET

          ENDFUNC