(unknown charset) Re: [BLACKBOX] floating point arithmetic

From: (unknown charset) [at]} <Robert>
Date: Sun, 20 Jan 2008 15:20:28 +0000

----boundary-LibPST-iamunique-1521755649_-_-
Content-type: text/plain

Bernhard Treutwein wrote:
> I remember vaguely that the flags are not necessarily
> preserved when a task switches. If this is true, it makes
> things even worse. Sorrily I don't remember where
> I read this. Does somebody know more?

When I change the floating point unit flags I observe the following
guidelines:

- I do it in small, self-contained routines.

- I set them back to the BlackBox default values before exitting the routine.

- I do not call framework procedures that might use / set these flags.

- I do not use LONGINTS, which use the FPU.

- Remember that routines like Strings.IntToString (now) use LONGINTs.


Exactly which BlackBox operations use/set the FPU could be useful information.

Regards

Robert.


ps - The following routine clears the FPU exception register:

PROCEDURE [code] ClearFPU 0DBH, 0E2H; (* FNCLEX Clear exceptions *)

I don't know (or have forgotten!) how to read it.


----
To unsubscribe, send a message with body "SIGNOFF BLACKBOX" to LISTSERV{([at]})nowhere.xy----boundary-LibPST-iamunique-1521755649_-_-
Content-type: application/rtf
Content-transfer-encoding: base64
Content-Disposition: attachment; filename="rtf-body.rtf"
e1xydGYxXGFuc2lcYW5zaWNwZzEyNTJcZnJvbXRleHQgXGRlZmYwe1xmb250dGJsDQp7XGYwXGZz
d2lzcyBBcmlhbDt9DQp7XGYxXGZtb2Rlcm4gQ291cmllciBOZXc7fQ0Ke1xmMlxmbmlsXGZjaGFy
c2V0MiBTeW1ib2w7fQ0Ke1xmM1xmbW9kZXJuXGZjaGFyc2V0MCBDb3VyaWVyIE5ldzt9fQ0Ke1xj
b2xvcnRibFxyZWQwXGdyZWVuMFxibHVlMDtccmVkMFxncmVlbjBcYmx1ZTI1NTt9DQpcdWMxXHBh
cmRccGxhaW5cZGVmdGFiMzYwIFxmMFxmczIwIEJlcm5oYXJkIFRyZXV0d2VpbiB3cm90ZTpccGFy
DQo+IEkgcmVtZW1iZXIgdmFndWVseSB0aGF0IHRoZSBmbGFncyBhcmUgbm90IG5lY2Vzc2FyaWx5
XHBhcg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ZvbGxvd2luZyBy
b3V0aW5lIGNsZWFycyB0aGUgRlBVIGV4Y2VwdGlvbiByZWdpc3RlcjpccGFyDQpccGFyDQpQUk9D
RURVUkUgW2NvZGVdIENsZWFyRlBVICAwREJILCAwRTJIO1x0YWIgKCogIEZOQ0xFWCAgQ2xlYXIg
ZXhjZXB0aW9ucyAgKilccGFyDQpccGFyDQpJIGRvbid0IGtub3cgKG9yIGhhdmUgZm9yZ290dGVu
ISkgaG93IHRvIHJlYWQgaXQuXHBhcg0KXHBhcg0KXHBhcg0KLS0tLVxwYXINClRvIHVuc3Vic2Ny
aWJlLCBzZW5kIGEgbWVzc2FnZSB3aXRoIGJvZHkgIlNJR05PRkYgQkxBQ0tCT1giIHRvIExJU1RT
RVJWQExJU1RTLk9CRVJPTi5DSH19AGzwAQA=
----boundary-LibPST-iamunique-1521755649_-_---
Received on Sun Jan 20 2008 - 16:20:28 UTC

This archive was generated by hypermail 2.3.0 : Thu Sep 26 2013 - 06:31:09 UTC