Difference: FloatingPointUnit (15 vs. 16)

Revision 162022-11-03 - PeterSchmid

Line: 1 to 1
 
META TOPICPARENT name="WebHome"
%DASHBOARD{ section="banner"
Line: 68 to 68
 

Some Links

Changed:
<
<
>
>
 

Deleted:
<
<
  • printf("%f", myFloat) f. fe. fs.
 
  • atof() oder strtof() benutzen?

  • nur single-precision? (7..8 Dezimalstellen, H7 hat double precision FPU)
Line: 190 to 190
 fround ( r1 -- r2 ) round r1 to an integral value using the "round to nearest" rule, giving r2

fflags@ ( -- u ) get the current value of the Floating Point Status/Control register FPSCR

Changed:
<
<
fflags! ( -- u ) assign the given value to the Floating Point Status/Control register FPSCR
>
>
fflags! ( u -- ) assign the given value to the Floating Point Status/Control register FPSCR
  f0= ( r -- ? ) flag is true if r is equal to zero f0< ( r -- ? ) flag is true if r is less than zero
Line: 206 to 206
 f>fx ( r -- d ) d is the fixed-point equivalent of the floating-point r fx>f ( d -- r ) r is the floating-point equivalent of the fixed-point d
Changed:
<
<
f. ( r -- ) Display, with a trailing space, the top number using fixed-point notation
>
>
pi ( -- r ) r is pi, approx. 3.14159274101257324 f. ( r -- ) display, with a trailing space, the floating-point number r using fixed-point notation
 
Changed:
<
<
fx* fx/
>
>
d+ ( d1 d2 -- d3 ) add d1 to d2 giving the sum d3 d- ( d1 d2 -- d3 ) subtract d2 from d1, giving d3 fx* ( d1 d2 -- d3 ) multiply d1 by d2 giving d3 fx/ ( d1 d2 -- d3 ) divide d1 by d2, giving the quotient d3 fx. ( d -- ) display, with a trailing space, the fixed-point number d fx.n ( d n -- ) print a fixed-point number with n fractional digits (truncated)
 
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2025 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback