Quantcast
Channel: User Bart van Ingen Schenau - Stack Overflow
Browsing all 41 articles
Browse latest View live

Comment by Bart van Ingen Schenau on Why NOP/few extra lines of...

One of the things with working with hardware is that it is sensitive to timing. Sometimes you just need those NOP instructions to add a few milliseconds of delay to get the timing with the hardware right.

View Article



Comment by Bart van Ingen Schenau on What do these ARM assembly instructions do?

You have the interpretation of those lines wrong. The first line indicates both Cs and Cp are used as register outputs. The second line indicated Cs is also used as a register input.

View Article

Comment by Bart van Ingen Schenau on What is a good way in Mercurial to...

meta.programmers.stackexchange.com/questions/6311/…. This holds also for other SCM systems.

View Article

Comment by Bart van Ingen Schenau on Call of overloaded function taking...

@dyp: If 0 has only one meaning, how can it be involved in two ambiguous conversions with different starting types?

View Article

Comment by Bart van Ingen Schenau on How to write examples in docstrings that...

@MERose: Given the response to the travis issue you submitted, I would ask on a Travis support forum how to write a test for a dictionary return value in a docstring. Maybe then someone will see your...

View Article


Comment by Bart van Ingen Schenau on What would realloc do if there is no...

@CoolGuy: Some implementations might not (be able to) do that first step of extending the current block, but otherwise this is the observable behaviour of realloc for all implementations.

View Article

Comment by Bart van Ingen Schenau on Why do most C developers use define...

@MinhTran: Note that the error message states "variable-sized object". This means that your array is a variable-length array (VLA).

View Article

Comment by Bart van Ingen Schenau on In C, can I initialize a string in a...

@KaranSingh: You can't modify the second one because the C language says so. Making string-literals read-only makes it possible for the compiler to use a single piece of memory for multiple identical...

View Article


Comment by Bart van Ingen Schenau on Hide implementation by using a pointer...

@jww: In the question, <concrete_x> is a existing header that declares the class concrete_x, which must not be included/known outside of x.cpp. That is why I am including the header, rather than...

View Article


Comment by Bart van Ingen Schenau on JIRA: Accidentally transitioned story...

You probably can't, because in the reality of JIRA, there is a time point where the story was burned. In a sprint review, if there questions about it, it is easy enough to explain like you did to us (I...

View Article

Comment by Bart van Ingen Schenau on Best practice for storing and protecting...

@pete: #5 means that a server you own acts as a go-between in the authentication. The API keys will be stored only on your server and not be included in any code that leaves your control.

View Article

Comment by Bart van Ingen Schenau on What's this meaning of `xxx@xxx` in a...

It appears to be a git submodule link. The part before the @ names the project and the part after the @ the revision that is being linked to.

View Article

Answer by Bart van Ingen Schenau for Explanation of the UB while changing data

In general, it is pointless to analyse Undefined Behaviour, because there is no guarantee that you can transfer the results of your analysis to a different program.In this case, the behaviour can be...

View Article


Answer by Bart van Ingen Schenau for hasNext() method in array iterator

To implement the hasNext() and hasPrev() methods, the ArrayIterator needs to know where the bounds are of the current Array it is iterating over.This can be done by either storing Cell* m_head,*m_last...

View Article

Answer by Bart van Ingen Schenau for Two way address translation or what?

Because kseedsl is a std::vector<double>&, you need two load instructions to get at the actual data contained in the vector.The first load instruction loads the location of the std::vector...

View Article


Answer by Bart van Ingen Schenau for Pointer representation

You are correct that int * and int const * are required to use the same representation and int ** and int const ** do not have that requirement.The reason for not requiring the same representation is...

View Article

Answer by Bart van Ingen Schenau for template argument deduction for destructor

The C++03 standard (I doubt that the C++11 standard will be any different) has the following paragraph (C++03 14.3/5 [temp.arg]):An explicit destructor call (12.4) for an object that has a type that is...

View Article


Answer by Bart van Ingen Schenau for memcpy for specific byteorder c/c++

There is no standard solution, but it is fairly easy to write yourself.Off the top of my head, an outline could look like this:// Macro to be able to switch easily between encodings. Just for...

View Article

Answer by Bart van Ingen Schenau for OpenGL ES 2.0 sharing esContext in C++

One of the major incompatibilities between C and C++ is in the are of type conversions.In particular, in C, you can freely convert a void* to any other pointer type without the need for a cast. This...

View Article

Answer by Bart van Ingen Schenau for Need help to correct my program Dev C++

Inside your loop, all the calculations are based on the values of inipop, projpop and constants. As none of these values gets changed in the loop, and the values for other variables are discarded...

View Article
Browsing all 41 articles
Browse latest View live




Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>
<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596344.js" async> </script>