strictfp Questions

1

JEP 306, implemented in Java 17, provides always-strict floating point semantics, deprecating the strictfp flag. Does this mean that java.lang.Math can be counted on to behave exactly the same as t...
Oao asked 12/7, 2023 at 20:3

3

I was trying out enum type in Java. When I write the below class, public class EnumExample { public enum Day { private String mood; MONDAY, TUESDAY, WEDNESDAY; Day(String mood) { } Day() { ...
Millibar asked 3/2, 2015 at 18:28

11

Solved

I've looked up what this does, but does anyone actually have an example of when you would use the strictfp keyword in Java? Has anyone actually found a use for this? Would there be any side-effect...
Narcose asked 5/2, 2009 at 21:8

1

Solved

More precisely, if there exists a function in the call stack with the strictfp modifier, will the function at the top of the call stack also adhere to the strictfp specifier? public class Main { ...
Attalanta asked 3/8, 2019 at 20:32

2

JLS strictfp Interfaces specifies that : The effect of the strictfp modifier is to make all float or double expressions within the interface declaration be explicitly FP-strict (§15.4). This impli...
Bennion asked 31/8, 2016 at 16:27

2

Solved

I'm reading SCJP by katherine sierra. I understand that abstract and final keywords cannot be used together because they contradict each other as explained in the book. However, I don't understan...
Zurn asked 9/5, 2013 at 1:53

2

Solved

I searched the web for how to enforce srictfp in Scala but could not find any hint of it. There are some people complaining about it, but real solutions cannot be found. There is a bugtracker entry...
Hershey asked 27/10, 2010 at 15:9

4

Solved

I'm implementing some neural network library in java , and there are intensive double (not Double) matrix operations, Matrices are large and performance is required of course. So I came to read ab...
Design asked 3/3, 2011 at 13:22

1

Solved

I know the meaning of the strictfp modifier on methods (and on classes), according to the JLS: JLS 8.4.3.5, strictfp methods: The effect of the strictfp modifier is to make all float or double ...
Emmaemmalee asked 21/3, 2014 at 15:10

1

Given a Java application which was written with performance in mind (i.e. methods are deliberately not declared 'strictfp' in the source code), is it possible to allow users to run the entire appli...
Busybody asked 26/6, 2013 at 15:47

3

Solved

As title really... if class X is declared strictfp and calls methods in class Y, will strictness be enforced, or does this only apply to X's own code? Additionally, if I calculate a value in a str...
Shang asked 11/6, 2013 at 19:57

1

Solved

While refactoring some code I stumbled over this oddity. It seems to be impossible to control the strictfp property for an initializer without affecting the entire class. Example: public class MyC...
Whorehouse asked 27/8, 2012 at 15:40
1

© 2022 - 2024 — McMap. All rights reserved.